package com.zaozhuang.robot.request;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class EmploymentInfo {
    // 公司名
    private String companyName;
    // 岗位名
    private String jobTitle;
    // 姓名
    private String name;
    // 身份证号
    private String idCardNumber;
    // 手机号
    private String phoneNumber;
    private String submitTime;    // 提交时间（格式：yyyy-MM-dd HH:mm:ss）

    // Getter & Setter 方法
    public EmploymentInfo(String companyName, String jobTitle, String name, String idCardNumber, String phoneNumber) {
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
//        this.submitTime = sdf.format(new Date());
        this.submitTime = String.valueOf(System.currentTimeMillis());
        this.companyName = companyName;
        this.jobTitle = jobTitle;
        this.name = name;
        this.idCardNumber = idCardNumber;
        this.phoneNumber = phoneNumber;
    }

    public EmploymentInfo() {
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
//        this.submitTime = sdf.format(new Date());
        this.submitTime = String.valueOf(System.currentTimeMillis());
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getJobTitle() {
        return jobTitle;
    }

    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCardNumber() {
        return idCardNumber;
    }

    public void setIdCardNumber(String idCardNumber) {
        this.idCardNumber = idCardNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getSubmitTime() {
        return submitTime;
    }
}

